﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PasteCluster;

namespace PasteCluster
{
    /// <summary>
    /// 
    /// </summary>
    public class PasteApiResponse
    {
        /// <summary>
        /// 
        /// </summary>
        public PasteNodeModel master { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public PasteNodeModel node { get; set; }

        /// <summary>
        /// 占位属性
        /// </summary>
        public bool success { get; set; } = true;

        /// <summary>
        /// 节点总数
        /// </summary>
        public int node_count { get; set; } = 0;
    }

    /// <summary>
    /// 
    /// </summary>
    public class PasteMasterResponse
    {
        /// <summary>
        /// 包含的节点列表有哪些
        /// </summary>
        public PasteNodeModel[] nodes { get; set; }

        /// <summary>
        /// 当前选举出来的master是哪个
        /// </summary>
        public PasteNodeModel master { get; set; }
    }
}
